package tech.senri.iot.socket.model

import io.netty.buffer.Unpooled
import io.swagger.annotations.ApiModelProperty
import tech.senri.iot.socket.service.util.getArray

class DeviceStateConfirmRequest : RequestMessage()
{
    override fun contentData(): ByteArray
    {
        return Unpooled.buffer().writeShort(data).getArray()
    }

    @ApiModelProperty("数值")
    var data: Int = 0
}
